#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:exercise2.py
# author:wmf
# datetime:2021/4/16 22:01
# software: PyCharm
'''
this is function description
'''
# import module your need
import functools


def log(func):
    @functools.wraps(func)
    def wrapper(*args, **kw):
        print('call %s():' % func.__name__)
        return func(*args, **kw)

    return wrapper


@log
def add(x, y):
    return x + y


print(add(1, 2))